//
//  PersonObserver.m
//  KVO
//
//  Created by dengbb on 2/22/16.
//  Copyright © 2016 mohekeji. All rights reserved.
//

#import "PersonObserver.h"

@implementation PersonObserver

//观察者需要实现的方法
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
    NSLog(@"old: %@", [change objectForKey:NSKeyValueChangeOldKey]);
    NSLog(@"old: %@", [change objectForKey:NSKeyValueChangeNewKey]);
    NSLog(@"context: %@", context);
}


@end
